           package com.java.diagnostics.visualizer.parser.vgc.converters;
           
           import com.java.diagnostics.visualizer.data.axes.UnitConverterDefinition;
           import com.java.diagnostics.visualizer.impl.axes.UnitConverterDefinitionImpl;
           import com.java.diagnostics.visualizer.parser.vgc.constants.VGCAxes;
           import java.util.SortedMap;
           
           public class GCNumberConverter extends MapUnitConverter
           {
             private static final UnitConverterDefinition definition = new UnitConverterDefinitionImpl(
               VGCAxes.MILLISECONDS, VGCAxes.COLLECTION, VGCAxes.GC_NUMBER, false);
           
             public String formatUnconverted(double number)
             {
               return String.valueOf(Math.round(number));
             }
           
             public UnitConverterDefinition getDefinition()
             {
               return definition;
             }
           
             public void setOffset(double offset)
             {
             }
           
             protected double interpolateInSmallMap(SortedMap map, int key)
             {
               return Math.floor(super.interpolateInSmallMap(map, key));
             }
           
             protected String getFormatWithUnitsPattern()
             {
               return "{0}";
             }
           }

